<?php
namespace Users;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
use Users\Model\Users;
use Users\Model\UsersTable;
use Users\Model\UsersType;
use Users\Model\UsersTypeTable;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Users\Model\Userdetails;
use Users\Model\UserdetailsTable;
use Users\Model\Forgetpassword;
use Users\Model\ForgetpasswordTable;
use Users\Model\Subscribe;
use Users\Model\SubscribeTable;
use Zend\ModuleManager\Feature;
use Zend\Loader;
use Zend\EventManager\EventInterface;
use Zend\Mvc\Router\RouteMatch;
use Zend\ModuleManager\ModuleManager;
use Zend\Stdlib\Hydrator\ClassMethods;
use Users\Model\Testimonials;
use Users\Model\TestimonialsTable;
use Users\Model\Offers;
use Users\Model\OffersTable;
use Users\Model\SentNotifications;
use Users\Model\SentNotificationsTable;
use Users\Model\OrderMains;
use Users\Model\OrderMainsTable;
use Users\Model\OrdersInfo;
use Users\Model\OrdersInfoTable;
use Users\Model\OrdersStatus;
use Users\Model\OrdersStatusTable;
use Users\Model\Usernewsletter;
use Users\Model\UsernewsletterTable;
class Module implements 
	Feature\AutoloaderProviderInterface,
    Feature\ConfigProviderInterface,
    Feature\ServiceProviderInterface
{
    public function getAutoloaderConfig()
    {
        return array(
            'Zend\Loader\ClassMapAutoloader' => array(
                __DIR__ . '/autoload_classmap.php',
            ),
            'Zend\Loader\StandardAutoloader' => array(
                'namespaces' => array(
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                ),
            ),
        );
    }
    public function getConfig()
    {
        return include __DIR__ . '/config/module.config.php';
    }    
    public function getServiceConfig()
    {
        return array(
			'factories' => array( 
            	'Users\Model\UsersFactory'=>'Users\Factory\Model\UsersTableFactory',			
            	'Users\Model\UsersTypeFactory'=>'Users\Factory\Model\UsersTypeTableFactory',			
            	'Users\Model\UserdetailsFactory'=>'Users\Factory\Model\UserdetailsTableFactory',			
            	'Users\Model\ForgetpasswordFactory'=>'Users\Factory\Model\ForgetpasswordTableFactory',			
            	'Users\Model\SubscribeFactory'=>'Users\Factory\Model\SubscribeTableFactory',			
            	'Users\Model\NewsletterFactory'=>'Users\Factory\Model\NewsletterTableFactory',			
            	'Users\Model\UsernewsletterFactory'=>'Users\Factory\Model\UsernewsletterTableFactory',			
            	'Users\Model\TestimonialsFactory'=>'Users\Factory\Model\TestimonialsTableFactory',			
            	'Users\Model\OffersFactory'=>'Users\Factory\Model\OffersTableFactory',			
            	'Users\Model\SentNotificationsFactory'=>'Users\Factory\Model\SentNotificationsTableFactory',				
            	'Users\Model\OrderMainsFactory'=>'Users\Factory\Model\OrderMainsTableFactory',			
            	'Users\Model\OrdersInfoFactory'=>'Users\Factory\Model\OrdersInfoTableFactory',			
            	'Users\Model\OrdersStatusFactory'=>'Users\Factory\Model\OrdersStatusTableFactory',			
            ),			
        );
    }
}